package net.trustie.pipeline;

import javax.annotation.Resource;

import net.trustie.dao.PHPChina_Dao;
import net.trustie.model.phpchina_Model;

import org.springframework.stereotype.Component;

import us.codecraft.webmagic.Task;
import core.PageModelPipeline;

@Component("phpChina_pipeline")
public class PHPChina_pipeline implements PageModelPipeline<phpchina_Model>{
	@Resource
	PHPChina_Dao phpChina_Dao;

	@Override
	public void process(phpchina_Model phpChina_Model, Task task) {
		phpChina_Dao.add(phpChina_Model);
	}
}
